import java.util.Scanner;

public class SwitchDemo08 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入星期几");
        int week = scanner.nextInt();
//        if (week == 1 || week == 3) {
//            System.out.println("上英语课");
//        } else if (week == 2) {
//            System.out.println("上计算机课");
//        } else if (week == 4 || week == 5) {
//            System.out.println("上数学课");
//        } else if (week == 6 || week == 7) {
//            System.out.println("周末休息");
//        } else {
//            System.out.println("非法输入");
//        }

        switch (week){
            case 1:
            case 3:
                System.out.println("上英语课");
                break;
            case 2:
                System.out.println("上计算机课");
                break;
            case 4:
            case 5:
                System.out.println("上数学课");
                break;
            case 6:
            case 7:
                System.out.println("周末休息");
                break;
        }
    }

}
